//
//  QJMineSYHeaderView.m
//  QuanJieShopProject
//
//  Created by apple on 2018/2/26.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "QJMineSYHeaderView.h"

@implementation QJMineSYHeaderView
- (IBAction)headerBtnClickAction:(UIButton *)sender {
    if (self.headerBtnClickBlockAction) {
        self.headerBtnClickBlockAction(sender.tag);
    }
}
- (void)setupHeaderUIAction{
    self.syLSBtn.layer.borderColor = [UIColor whiteColor].CGColor;
    self.syLSBtn.layer.borderWidth = 1.0;
    self.syLSBtn.layer.cornerRadius = 15.0;
    self.syLSBtn.layer.masksToBounds = YES;
    
    self.syGoTX.layer.borderColor = HexRGB(0x0589E8).CGColor;
    self.syGoTX.layer.borderWidth = 1.0;
    self.syGoTX.layer.cornerRadius = 15.0;
    self.syGoTX.layer.masksToBounds = YES;
    
    self.syTopView.backgroundColor = [UIColor colorWithWhite:1 alpha:0.1];
}
- (void)headerUpdateWithModel:(MineShouYiModel *)model{
    if (model) {
        self.syMoneyLabel.text = [NSString stringWithoutNilFormart:model.totalFee];
        self.syDJLabel.text = [NSString stringWithoutNilFormart:model.dj];
        self.syTXLabel.text = [NSString stringWithoutNilFormart:model.ytx];
        self.syKTXLabel.text = [NSString stringWithoutNilFormart:model.ye];
        [self.syZSBtn setTitle:[NSString stringWithoutNilFormart:model.zrsy] forState:UIControlStateNormal];
        self.syJOneLabel.text = [NSString stringWithoutNilFormart:model.gold_ky];
        self.syJTwoLabel.text = [NSString stringWithoutNilFormart:model.gold_df];
        self.syJThreeLabel.text = [NSString stringWithoutNilFormart:model.gold_ykc];
        self.syJFourLabel.text = [NSString stringWithoutNilFormart:model.gold_sy];
        self.syYOneLabel.text = [NSString stringWithoutNilFormart:model.silver_ky];
        self.syYTwoLabel.text = [NSString stringWithoutNilFormart:model.silver_df];
        self.syYThreeLabel.text = [NSString stringWithoutNilFormart:model.silver_yxf];
        self.syYFourLabel.text = [NSString stringWithoutNilFormart:model.silver_zr_sy];
        self.syYFiveLabel.text = [NSString stringWithoutNilFormart:model.silver_total_sy];
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
